package com.itheima.test6;

public class Test6Innerclass {
    public static void main(String[] args) {
        swim(new Inner() {
            @Override
            public void swimming() {
                System.out.println("铁汁,我们去游泳吧!!!");
            }
        });
    }
    public static void swim(Inner i){
        i.swimming();
    }
}
interface Inner{
    public abstract void swimming();
}




